home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr37 / banker31.zip / BANKER.WCX (.txt) < prev    next >
Wildcat! WCX  |  1995-04-09  |  7KB  |  399 lines

  1. '! Decompiled with wccNosy version 4.20f (freeware)
  2. '! Input File: in.wcx  7428 bytes  01/29/123  04:31:22pm
  3. '! Code Segment Size  :3180 bytes
  4. '! Data Segment Size  :4662 bytes
  5. '! String Segment Size:4248 bytes
  6. '! Compiled with WCC version 4.01
  7.  
  8.       Declare Function Func588(l65534 As Long) As Integer
  9.       Declare Function Func666(l65534 As Long) As Integer
  10.       Declare Function Func748(l65534 As Long) As Integer
  11.       Declare Sub Sub877
  12.       Declare Sub Sub916
  13.       Declare Sub Sub950
  14.       Declare Sub Sub995
  15.       Declare Sub Sub1147
  16.       Declare Sub Sub1919
  17.  
  18.       Dim i4463 As Integer
  19.       Dim i4465 As Integer
  20.       Dim i4467 As Integer
  21.       Dim w4469 As Word
  22.       Dim i4471 As Integer
  23.       Dim l4473 As Long
  24.       Dim l4477 As Long
  25.       Dim l4481 As Long
  26.       Dim i4485 As Integer
  27.       Dim s4487 As String*1
  28.       Dim s4488 As String*3
  29.       Dim s4491 As String*3
  30.       Dim s4494 As String*10
  31.       Dim s4504 As String*10
  32.       Dim s4514 As String*10
  33.       Dim s4524 As String*25
  34.       Dim s4549 As String*25
  35.       Dim s4574 As String*25
  36.       Dim s4599 As String
  37.       Dim s4603 As String
  38.       Dim s4607 As String*25
  39.       Dim s4632 As String*30
  40.  
  41.       s4607 = "UNREGISTERED"
  42.       s4632 = "UNREGISTERED"
  43.       CarrierCheck(-1)
  44.       s4603 = ProgPath + "BANKER.CFG"
  45.       Open s4603 For Input As 1
  46.       Input #1, s4494
  47.       Input #1, s4504
  48.       Input #1, s4514
  49.       Input #1, s4524
  50.       Input #1, s4549
  51.       Input #1, s4574
  52.       Input #1, i4465
  53.       Input #1, i4463
  54.       Input #1, s4488
  55.       Input #1, i4467
  56.       Input #1, s4491
  57.       Reset 
  58.       If User.SecLevel = UCase(s4494) Then
  59.         Sub916
  60.         End 
  61.       End If
  62.   235 If User.SecLevel = UCase(s4504) Then
  63.         Sub916
  64.         End 
  65.       End If
  66.   269 If User.SecLevel = UCase(s4514) Then
  67.         Sub916
  68.         End 
  69.       End If
  70.   303 If User.Name = UCase(s4524) Then
  71.         Sub916
  72.         End 
  73.       End If
  74.   337 If User.Name = UCase(s4549) Then
  75.         Sub916
  76.         End 
  77.       End If
  78.   371 If User.Name = UCase(s4574) Then
  79.         Sub916
  80.         End 
  81.       End If
  82.   405 l4481 = TimeLeft
  83.       i4485 = User.NetMailBalance
  84.       l4477 = User.SubscriptionBalance
  85.       If UCase(s4488) = "YES" Then
  86.         Sub950
  87.       End If
  88.   471 If l4477 > i4465 Then
  89.         Cls 
  90.         Locate 11, 1
  91.         Print "@8A@               Banker balance adjusted to reflect balance limit!"
  92.         l4477 = i4465
  93.         WaitEnter 
  94.       End If
  95.   521 ActivityLog "-=≡:> Time Banker Entered <:≡=-"
  96.       If UCase(s4491) = "α╪╦╫╨" Then
  97.         Sub1147
  98.       Else
  99.   563   Sub1919
  100.       End If
  101.   569 Sub877
  102.       End 
  103.  
  104. '! Called 1 time
  105.       Function Func588(l65534 As Long) As Integer
  106.         If Abs(l65534) > i4463 Then
  107.           Print
  108.           Print "@0C@                  The maximum allowable transaction is@07@: @0A@"; i4463
  109.           Func588 = 0
  110.         Else
  111.   650     Func588 = -1
  112.         End If
  113.   658
  114.       End Function
  115.  
  116. '! Called 1 time
  117.       Function Func666(l65534 As Long) As Integer
  118.         If l4477 + l65534 > i4465 Then
  119.           Print
  120.           Print "@0C@                   The maximum allowable balance is@07@: @0A@"; i4465
  121.           Func666 = 0
  122.         Else
  123.   732     Func666 = -1
  124.         End If
  125.   740
  126.       End Function
  127.  
  128. '! Called 6 times
  129.       Function Func748(l65534 As Long) As Integer
  130.         If Func588(l65534) = -1 And Func666(l65534) = -1 Then
  131.           l4481 = l4481 - l65534
  132.           l4477 = l4477 + l65534
  133.           Func748 = -1
  134.         Else
  135.   849     Print
  136.           Print "@8C@                       Transaction Not Processed!"
  137.           WaitEnter 
  138.           Func748 = 0
  139.         End If
  140.   869
  141.       End Function
  142.  
  143. '! Called 1 time
  144.       Sub Sub877
  145.         Cls 
  146.         Locate 12, 8
  147.         Print "@0E@This Program is @8C@UNREGISTERED@0E@. Please ask your SysOp to Register!"
  148.         Delay 3
  149.       End Sub
  150.  
  151. '! Called 6 times
  152.       Sub Sub916
  153.         ActivityLog "-=≡:> Time Banker Access Denied <:≡=-"
  154.         Print
  155.         Print "@0E@Sorry, but you do not have access to this door!"
  156.         WaitEnter 
  157.       End Sub
  158.  
  159. '! Called 1 time
  160.       Sub Sub950
  161.         If i4485 >= i4467 Then
  162.           Print
  163.           Print "@0E@Sorry, but the bank is closed! Try again tomorrow."
  164.           WaitEnter 
  165.           End 
  166.         End If
  167.   992
  168.       End Sub
  169.  
  170. '! Called 1 time
  171.       Sub Sub995
  172.         Dim i65534 As Integer
  173.  
  174.         i65534 = 1
  175.         Do
  176.  1011     s4487 = InKey(1213417543)
  177.           If InStr("DWTQ", UCase(s4487)) Then
  178.             GoTo 1144
  179.           End If
  180.  1054     Locate 22, 50
  181.           Print Tab(50); "@0F@"; Mid("─\|/", i65534, 1);
  182.           i65534 = i65534 + 1
  183.           If i65534 > 4 Then
  184.             i65534 = 1
  185.           End If
  186.  1130     Delay 0.1
  187.         Loop
  188.  1144
  189.       End Sub
  190.  
  191. '! Called 1 time
  192.       Sub Sub1147
  193.         Dim l65528 As Long '! Temporary
  194.         Dim s65532 As String
  195.  
  196.         Do
  197.  1156     s4599 = ProgPath + "BANKER.MNU"
  198.           DisplayTextFile(s4599)
  199.           Print "@0B@                  Your Current Time Banker Balance Is @07@... @0A@"; l4477
  200.           Print "@0B@                  Time Currently Available Online @07@....... @0A@"; l4481
  201.           Print "@0B@                  Maximum Allowed Account Balance @07@....... @0A@"; i4465
  202.           Print "@0B@                  Maximum Allowed Transaction @07@........... @0A@"; i4463
  203.           Print
  204.           Print "@0F@                          Time Banker Command >> ";
  205.           Input s4487
  206.           s65532 = UCase(s4487)
  207.           If s65532 = "T" Then
  208.             l4473 = l4481
  209.             If l4481 + l4477 > i4465 Then
  210.               Cls 
  211.               Locate 8, 1
  212.               Print "@0C@         This deposit is greater than your maximum allowable balance!"
  213.               Print
  214.               Print "@0B@                 Your Current Time Banker Balance Is @07@... @0A@"; l4477
  215.               Print "@0B@                 Time Currently Available Online @07@....... @0A@"; l4481
  216.               Print "@0B@                 Maximum Allowed Account Balance @07@....... @0A@"; i4465
  217.               Print "@0B@                 Maximum Allowed Transaction @07@........... @0A@"; i4463
  218.               Print
  219.               Print "@0C@                         Transaction Not Processed!"
  220.               Print
  221.               WaitEnter 
  222.             Else
  223.  1433         w4469 = Func748(l4473)
  224.               User.SubscriptionBalance = l4477
  225.               If UCase(s4488) = "YES" Then
  226.                 User.NetMailBalance = i4485 + 1
  227.               End If
  228.  1503         Cls 
  229.               Locate 12, 1
  230.               Print "@0A@                            Transaction Processed!";
  231.               Delay 1
  232.               User.TimeLeft = 1
  233.               Delay 2
  234.               DisplayFile("Goodbye")
  235.               Goodbye 1213417543
  236.               End 
  237.             End If
  238.  1568     Else
  239.  1574       If s65532 = "D" Then
  240.               Cls 
  241.               Locate 10, 1
  242.               l4473 = Val(InputMask("@0E@               How much time would you like to deposit ? ", "99", "", 1213417543))
  243.               If l4473 > TimeLeft Then
  244.                 Print
  245.                 Print "@0C@               This deposit is greater than currently available time!"
  246.                 Print
  247.                 WaitEnter 
  248.               Else
  249.  1670           w4469 = Func748(l4473)
  250.               End If
  251.  1684       Else
  252.  1690         If s65532 = "W" Then
  253.                 Cls 
  254.                 Locate 10, 1
  255.                 l4473 = Val(InputMask("@0E@               How much time would you like to withdraw ? ", "99", "", 1213417543))
  256.                 If l4473 > l4477 Then
  257.                   Print
  258.                   Print "@0C@               This withdrawal is greater than your banked time!"
  259.                   Print
  260.                   WaitEnter 
  261.                 Else
  262.  1788
  263.                   Func748((- l4473))
  264.                 End If
  265.  1815           GoTo 1821
  266.               End If
  267.             End If
  268.           End If
  269.  1821   Loop Until UCase(s4487) = "Q"
  270.         AddTime l4481 - TimeLeft
  271.         User.SubscriptionBalance = l4477
  272.         If UCase(s4488) = "YES" Then
  273.           User.NetMailBalance = i4485 + 1
  274.         End If
  275.  1912
  276.       End Sub
  277.  
  278. '! Called 1 time
  279.       Sub Sub1919
  280.         Dim l65510 As Long '! Temporary
  281.         Dim l65514 As Long
  282.         Dim i65518 As Integer
  283.         Dim l65520 As Long
  284.         Dim i65524 As Integer
  285.         Dim l65526 As Long
  286.         Dim i65530 As Integer
  287.         Dim s65532 As String
  288.  
  289.         Do
  290.  1928     Cls 
  291.           Print "@0F@▄▄▄▄@0B@▐@1B@ ┌─────────────────────────────────────────────────────────────────@10@┐@1B@ @08@▌@07@▄▄@0F@▄▄@0A@"
  292.           Print "@0E@▄▄▄▄@0B@▐@1B@ │                        @1E@TIME BANKER 3.1                          @10@│@1B@ @08@▌@06@▄▄@0E@▄▄@0A@"
  293.           Print "@0D@▄▄▄▄@0B@▐@1B@ │@10@                                                                 │@1B@ @08@▌@05@▄▄@0D@▄▄@0A@"
  294.           Print "@0C@▄▄▄▄@0B@▐@1B@ │@10@                                                                 │@1B@ @08@▌@04@▄▄@0C@▄▄@0A@"
  295.           Print "▄▄▄▄@0B@▐@1B@ └@10@─────────────────────────────────────────────────────────────────┘@1B@ @08@▌@02@▄▄@0A@▄▄"
  296.           Print "@0F@▄▄▄▄▄▄▄@07@▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄@0F@▄▄@0A@"
  297.           Locate 4, 17
  298.           Print "@1F@SysOp@17@: @1F@"; s4607
  299.           Locate 4, 43
  300.           Print "@1F@BBS@17@: @1F@"; s4632
  301.           Locate 8, 1
  302.           Print "@0F@                  Time Banker Statistics for@07@: @0E@"; User.Name
  303.           Locate 10, 1
  304.           Print "@0B@                  Your Current Time Banker Balance Is @07@... @0A@"; l4477
  305.           Print "@0B@                  Time Currently Available Online @07@....... @0A@"; l4481
  306.           Print "@0B@                  Maximum Allowed Account Balance @07@....... @0A@"; i4465
  307.           Print "@0B@                  Maximum Allowed Transaction @07@........... @0A@"; i4463
  308.           Locate 15, 1
  309.           Print "@0B@                   ▐@10@ @1B@┌─────────────────────────────────@10@┐ @08@▌@0E@"
  310.           Print "@0B@                   ▐@10@ @1B@│@1E@ @1B@[@1E@D@10@]@1F@eposit time into the Banker@1B@ @1E@ @10@│ @08@▌@0E@"
  311.           Print "@0B@                   ▐@10@ @1B@│@1E@ @1B@[@1E@W@10@]@1F@ithdraw time from the Banker@1E@ @10@│ @08@▌@0E@"
  312.           Print "@0B@                   ▐@10@ @1B@│@1E@ @1B@[@1E@T@10@]@1F@ransfer time left and Logoff@1E@ @10@│ @08@▌@0E@"
  313.           Print "@0B@                   ▐@10@ @1B@│@1E@ @1B@[@1E@Q@10@]@1F@uit back to the BBS        @1B@ @1E@ @10@│ @08@▌@0E@"
  314.           Print "@0B@                   ▐@10@ @1B@└@10@─────────────────────────────────┘ @08@▌@0E@"
  315.           Print
  316.           Print "@0A@                          Time Banker Command >> ";
  317.           Sub995
  318.           s65532 = UCase(s4487)
  319.           If s65532 = "T" Then
  320.             l4473 = l4481
  321.             If l4481 + l4477 > i4465 Then
  322.               Cls 
  323.               Locate 8, 1
  324.               Print "@0C@         This deposit is greater than your maximum allowable balance!"
  325.               Print
  326.               Print "@0B@                 Your Current Time Banker Balance Is @07@... @0A@"; l4477
  327.               Print "@0B@                 Time Currently Available Online @07@....... @0A@"; l4481
  328.               Print "@0B@                 Maximum Allowed Account Balance @07@....... @0A@"; i4465
  329.               Print "@0B@                 Maximum Allowed Transaction @07@........... @0A@"; i4463
  330.               Print
  331.               Print "@0C@                         Transaction Not Processed!"
  332.               Print
  333.               WaitEnter 
  334.             Else
  335.  2382         w4469 = Func748(l4473)
  336.               User.SubscriptionBalance = l4477
  337.               If UCase(s4488) = "YES" Then
  338.                 User.NetMailBalance = i4485 + 1
  339.               End If
  340.  2452
  341.  2473         For i4471 = 15 To 22 Step 1
  342.                 Locate i4471, 1
  343.                 ClrEOL 
  344.               Next
  345.  2559         Locate 16, 1
  346.               Print "@0A@                           Transaction Processed!";
  347.               Delay 1
  348.               User.TimeLeft = 1
  349.               Delay 2
  350.               DisplayFile("Goodbye")
  351.               Goodbye 1213417543
  352.               End 
  353.             End If
  354.  2621     Else
  355.  2627       If s65532 = "D" Then
  356.  2665         For i4471 = 15 To 22 Step 1
  357.                 Locate i4471, 1
  358.                 ClrEOL 
  359.               Next
  360.  2751         Locate 15, 1
  361.               l4473 = Val(InputMask("@0E@               How much time would you like to deposit ? ", "99", "", 1213417543))
  362.               If l4473 > TimeLeft Then
  363.                 Print
  364.                 Print "@0C@               This deposit is greater than currently available time!"
  365.                 Print
  366.                 WaitEnter 
  367.               Else
  368.  2827           w4469 = Func748(l4473)
  369.               End If
  370.  2841       Else
  371.  2847         If s65532 = "W" Then
  372.  2885           For i4471 = 15 To 22 Step 1
  373.                   Locate i4471, 1
  374.                   ClrEOL 
  375.                 Next
  376.  2971           Locate 15, 1
  377.                 l4473 = Val(InputMask("@0E@               How much time would you like to withdraw ? ", "99", "", 1213417543))
  378.                 If l4473 > l4477 Then
  379.                   Print
  380.                   Print "@0C@               This withdrawal is greater than your banked time!"
  381.                   Print
  382.                   WaitEnter 
  383.                 Else
  384.  3049
  385.                   Func748((- l4473))
  386.                 End If
  387.  3076           GoTo 3082
  388.               End If
  389.             End If
  390.           End If
  391.  3082   Loop Until UCase(s4487) = "Q"
  392.         AddTime l4481 - TimeLeft
  393.         User.SubscriptionBalance = l4477
  394.         If UCase(s4488) = "YES" Then
  395.           User.NetMailBalance = i4485 + 1
  396.         End If
  397.  3173
  398.       End Sub
  399.